package com.itstyle.seckill.topic.desinger.design_xw.strategy;

/**
 * @Auther: liuwenxiang
 * @Date: 2019/9/18 20:45
 * @Description:
 */
public class Context {

    private Strategy strategy;

    public Strategy getStrategy()
    {
        return strategy;
    }
    public void setStrategy(Strategy strategy)
    {
        this.strategy=strategy;
    }
    public void strategyMethod()
    {
        strategy.method();
    }
}
